import { uiwu } from "@/api/interface/interface"

/** 用户提现 **/
export const cashExtractApi = async(data): Promise<any> => {
    return await uiwu.post({
        url: `cash/extract`,
        data
    })
}

/** 提现列表 **/
export const cashListApi = async(data): Promise<any> => {
    return await uiwu.get({
        url: `cash/list?page=` + data.page + '&limit=' + data.limit ,
    })
}

/** 提现统计数据 **/
export const withdrawalStatsApi = async(): Promise<any> => {
    return await uiwu.get({
        url: 'fans/userWithdrawalStatistics'
    })
}

/** 提现详情 **/
export const cashInfoApi = async(data: number): Promise<any> => {
    return await uiwu.get({
        url: `cash/info/` + data,
    })
}
